package com.epam.stringutil;

public class StringUtil {
	private StringBuilder bild = new StringBuilder();

	public String concat(Object... args) throws ConcatException {
		if (args == null || args.length == 0) {
			throw new ConcatException();
		}
		for (Object i : args) {
			bild.append(i);
		}
		return bild.toString();
	}

	public static void main(String[] args) throws ConcatException {
		StringUtil su = new StringUtil();
		System.out.println(su.concat(null));
		System.out
				.println(su.concat("dfsgadfg", 1, 1.2222, 5, "sdfsdfgaergft"));
	}
}
